Documentation

LogoutSubscriber extends AbstractController
in package
implements EventSubscriberInterface

Table of Contents

Interfaces

EventSubscriberInterface

Properties

$urlGenerator  : UrlGeneratorInterface

Methods

__construct()  : void
LogoutSubscriber constructor.
getSubscribedEvents()  : array<string|int, mixed>
Returns the subscribed events for the LogoutSubscriber class.
onLogout()  : void
Handles the logout event.

Properties

Methods

__construct()

LogoutSubscriber constructor.

public __construct(UrlGeneratorInterface $urlGenerator) : void
Parameters
$urlGenerator : UrlGeneratorInterface
Tags
phpstan-ignore-next-line

getSubscribedEvents()

Returns the subscribed events for the LogoutSubscriber class.

public static getSubscribedEvents() : array<string|int, mixed>
Return values
array<string|int, mixed>

The subscribed events.

onLogout()

Handles the logout event.

public onLogout(LogoutEvent $event) : void
Parameters
$event : LogoutEvent

The logout event.


        
On this page

Search results